let user = require('./User.js');

// console.log(user.username);
// console.log(user.sayHello());

const http = require('http');

const server = http.createServer((req, res) => {
    res.writeHead(200, {'Content-Type':'text/plain; charset=utf-8'});
    res.end('响应内容');
});

server.listen(3001, '127.0.0.1', () => {
    console.log('监听3001端口');
})